Skip to content

Conversation

@cr0bar
Copy link

@cr0bar cr0bar commented Jan 20, 2025

This PR is to introduce support for signing and encryption/decryption on hardware based Nostr Signing Devices over BLE.

@cr0bar
Copy link
Author

cr0bar commented Jan 21, 2025

View NIP

@staab
Copy link
Member

staab commented Jan 21, 2025

This is cool, but I'm not sure what all the key management methods are for. Usually it's the responsibility of the signer to provide an interface for this, although there has been talk of a hook in NIP 07 to notify clients of when the account has changed. I would also try to use the same method names as exist in 07/55/46 when possible.

@cr0bar
Copy link
Author

cr0bar commented Jan 21, 2025

@staab the idea behind this was to allow a client to switch between and manage public keys held on the device, however, I see your point. In reality the only commands that need to be exposed to the client over BLE are:

  • /public-key
  • /sign-message
  • /encrypt-message-nipXX
  • /decrypt-message-nipXX
  • /ping

I'll review and reflect on the other NIPs you mentioned.

@vitorpamplona
Copy link
Collaborator

As a Bluetooth dev for 5 years, I am a big fan of this.

We can have earplugs that read the permission and sign for you.

@cr0bar
Copy link
Author

cr0bar commented Jan 28, 2025

Implemented in the following:

LNbits NSD: lnbits/nostr-signing-device#21
NSD Config Tool (for iOS): https://apps.apple.com/us/app/nsd-config-tool/id6741039097

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants